package com.example.planetexploder.utils;

import com.example.planetexploder.R;
import com.example.planetexploder.bean.maindata.ItemInfo;

public class GetIcon {
    public static int getItemIcon(String itemId)
    {
        if ((itemId.charAt(0) + "").equals(ItemInfo.textIdHead))
            return R.drawable.icon_text;
        else
            return R.drawable.icon_picture;
    }

    public static int getBookIcon(int tag)
    {
        switch (tag)
        {
            case 1:
                return R.drawable.d1;
            case 2:
                return R.drawable.d2;
            case 3:
                return R.drawable.d3;
            case 4:
                return R.drawable.d4;
            case 5:
                return R.drawable.d5;
            case 6:
                return R.drawable.d6;
            case 7:
                return R.drawable.d7;
            case 8:
                return R.drawable.d8;
            case 9:
                return R.drawable.d9;
            case 10:
                return R.drawable.d10;
            case 11:
                return R.drawable.d11;
            case 12:
                return R.drawable.d12;
            case 13:
                return R.drawable.d13;
            case 14:
                return R.drawable.d14;
            case 15:
                return R.drawable.d15;
            case 16:
                return R.drawable.d16;
            case 17:
                return R.drawable.d17;
            case 18:
                return R.drawable.d18;
            default:
                return R.drawable.d1;
        }
    }

}
